package com.lxh.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author lxh
 * @since 2022-03-01
 */
@Getter
@Setter
@TableName("user")
@ApiModel(value = "User对象", description = "User对象")
public class User extends Model {

    @ApiModelProperty("主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty("年龄")
    @TableField("age")
    private Integer age;

    @ApiModelProperty("邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty("数据状态（0：正常，1：删除）")
    @TableField("del_flag")
    @TableLogic(value="0",delval="1")
    private Integer delFlag = 0;


}
